<template>
  <view style="width: 100%;">
    <web-view :src="allUrl"></web-view>
  </view>
</template>
 
<script>
  export default {
    data () {
      return {
        allUrl: '',
        viewerUrl: 'http://192.168.1.16:8082/index/main',
        pdfUrl: '',
		
      }
    },
    onLoad (options) {
      console.log(20, options.pdfUrl)  //通过传参传递过来
      // this.pdfUrl = options.pdfUrl
      let fileUrl = encodeURIComponent(this.pdfUrl) // encodeURIComponent 函数可把字符串作为 URI 组件进行编码。
      this.allUrl = this.viewerUrl 
    }
  }
</script>
 
<style>
 
</style>